package com.autocloud.mirspringboot.controller;

import com.autocloud.mirspringboot.common.util.ResultUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author zhongwb
 * @version 1.0
 * @description 初始页面
 * @date 2020/1/12 12:05 下午
 */
@RestController
@RequestMapping("/index")
public class IndexController {

    /**
     * 首页
     *
     * @Return Map<String, Object> 返回数据MAP
     */
    @RequestMapping(value = "/info", method = RequestMethod.GET)
    public Map<String, Object> userLogin() {
        // 组装参数
        Map<String, Object> result = new HashMap<>();
        result.put("title", "这里是首页不需要权限和登录拦截");
        return ResultUtil.resultSuccess(result);
    }
}
